<div id="navbar" class="navbar navbar-default ace-save-state">
    <div class="navbar-container ace-save-state" id="navbar-container">
        <!-- 导航左侧按钮手机样式开始 -->
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">Toggle sidebar</span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>
        </button><!-- 导航左侧按钮手机样式结束 -->
        <!-- 导航左侧正常样式开始 -->
        <div class="navbar-header pull-left nav-header-logo">
            <!-- logo -->
            <a href="{:url('admin/Index/index')}" class="navbar-brand navbar-logo">
                <small>
                    <img src="{$static_path}/images/logo.png">
                    YFCMF
                </small>
            </a>
        </div><!-- 导航左侧正常样式结束 -->
        <!-- 导航栏开始 -->
        <div class="navbar-buttons navbar-header pull-left" role="navigation">
            <ul class="nav ace-nav nav-module">
                <li>
                    <a href="{:url('admin/Index/index')}">
                        <i class="ace-icon fa fa-home home-icon"></i>首页
                    </a>
                </li>
                {foreach $modules_nav as $module}
                <li>
                    <a href="{:url($module['nav_url'])}">
                        <i class="ace-icon {$module['icon']}"></i>{$module['title']}
                    </a>
                </li>
                {/foreach}
            </ul>
        </div><!-- 导航栏结束 -->
        <!-- 导航栏开始 -->
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="grey">
                    <a href="{:url('home/Index/index')}" target="_blank">
                        前台首页
                    </a>
                </li>

                <li class="purple">
                    <a data-info="确定要清理缓存吗？" class="confirm-rst-btn" href="{:url('admin/Index/clear')}">
                        清除缓存
                    </a>
                </li>

                {if condition="config('yfcmf.lang_switch_on')"}
                <li class="grey">
                    {switch name="$lang"}
                    {case value="zh-cn"}<a href="{:url('admin/Index/lang',['lang_s'=>'en'])}" class="rst-url-btn">ENGLISH</a>{/case}
                    {case value="en-us"}<a href="{:url('admin/Index/lang',['lang_s'=>'cn'])}" class="rst-url-btn">简体中文</a>{/case}
                    {/switch}
                </li>
                {/if}
                <!-- 用户菜单开始 -->
                <li class="light-blue dropdown-modal">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="{:get_imgurl(session('admin_auth.avatar'),2)}" alt="{:session('admin_auth.username')}"/>
                        <span class="user-info">
                            <small>欢迎,</small>
                            {:session('admin_auth.username')}
                        </span>

                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>

                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a class="yf-modal-open" href="javascript:;" data-title="个人中心" data-url="{:url('admin/Index/profile')}">
                                <i class="ace-icon fa fa-user"></i>
                                会员中心
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            <a href="{:url('admin/Login/logout')}" data-info="你确定要退出吗？" class="confirm-btn">
                                <i class="ace-icon fa fa-power-off"></i>
                                注销
                            </a>
                        </li>
                    </ul>
                </li><!-- 用户菜单结束 -->
            </ul>
        </div><!-- 导航栏结束 -->
    </div><!-- 导航栏容器结束 -->
</div><!-- 导航栏结束 -->